<template>
	<view>
		222
		<TabBar :selectedIndex="selectedTabIndex"></TabBar>
	</view>
</template>

<script>
	import TabBar from "../../components/tabbar.vue";
	export default {
		components: {
			TabBar
		},
		data() {
			return {

			}
		},
		computed: {
			//判断是什么角色
			selectedTabIndex() {
				let a='tom1'
				return a !== 'tom' ? 1 : 2;
				// return uni.getStorageSync('identify') === 'tom' ? 1 : 2;
			},
		},
		onShow() {
			//⭐隐藏pages.json里配置的导航栏，使用封装的tabbar组件
			uni.hideTabBar({
				animation: false
			})
		},
		methods: {

		}
	}
</script>

<style>

</style>